package com.watson.value.service.impl;

import com.watson.value.config.DemoValue;
import com.watson.value.service.TestService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description: TODO
 * @Author watson
 * @Date 2022/7/12 16:01
 * @Version 1.0
 */
@Service
public class TestServiceImpl implements TestService {
//    @Value("${test.t.split(',')}")
    private List<String> list;
    @Value("${test.tt}")
    private String str;

    @Resource
    private DemoValue demoValue;


    @Override
    public void get() {
        System.out.println(list);
        System.out.println("==========================");
        System.out.println(str);
    }

    @Override
    public void demoList() {
        System.out.println(demoValue.getList());
        System.out.println("==========================");
    }
}
